					<div class="page-toolbar">
						<div class="btn-group pull-right">
							<?php echo form_open('admin/movie_reviews/search_by')?>
								<select name="search_by" id="location" class="select2_category form-control" data-placeholder="Choose a Category" tabindex="1">
									<option value="">select</option>
									<?php foreach($review_fields as $review_k => $review_v):?>
									<?php if($review_k!=='created_date'):?>			
									<?php if($search_by == $review_k): ?>
										<option selected="selected" value="<?php echo $review_k;?>"><?php echo $review_v;?></option>
									<?php else:?>
										<option value="<?php echo $review_k;?>"><?php echo $review_v;?></option>
									<?php endif;endif; endforeach;?>
									</select><?php echo form_error('search_by');?>
								<input type="text" value="<?php echo $search_by_value; ?>" name="search" id="location_search" class="form-control" placeholder="search"/>
								<input type="submit" class="btn blue" value="Search"/>
						<?php echo form_close();?>				
						</div>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row">
					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-edit"></i>Movie Review Table
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="#portlet-config" data-toggle="modal" class="config">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="remove">
									</a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="table-toolbar">
									<div class="row">
										<div class="col-md-6">
											<div class="btn-group">
												<a href="<?php echo base_url().'index.php/admin/movie_reviews/create_review';?>"><button id="sample_editable_1_new" class="btn green">
												Add New <i class="fa fa-plus"></i>
												</button></a>
											</div>
										</div>
										<?php if($error == 1){
											echo "No Records Found<br>";
											echo anchor('admin/movie_reviews/index/', 'Back');
										}else{?>
								</div>
								</div>
								<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
								<thead>
								<tr>
									<?php foreach($review_fields as $review_k => $review_v):?>
									<th>
										 <?php echo anchor('admin/movie_reviews/index/'.$query_id.'/'.$review_k.'/'.(($sort_order == 'asc' && $order_by == $review_k) ? 'desc' : 'asc'), $review_v);?>
									</th>
									<?php endforeach;?>
									<th>
										 Edit
									</th>
									<th>
										 Delete
									</th>
								</tr>
								</thead>
								<tbody>
								<?php echo 'Total Records: '.$reviews_all_reviews->total;?>
								<?php //echo '<pre>';print_r($events_all_event_location);exit;?>
								<?php foreach($reviews_all_reviews->info as $review):?>
								<tr>
									<td>
										 <?php echo $review->event_title;?>
									</td>
									<td>
										 <?php echo $review->language;?>
									</td>
									<td>
										 <?php echo $review->movie_type;?>
									</td>
									<td>
										 <?php echo $review->author;?>
									</td>
									<td>
										 <?php echo $review->created_date;?>
									</td>
									<td>
										<a class="edit" href="<?php echo base_url().'index.php/admin/movie_reviews/edit_review/'.$review->review_id;?>">
										Edit </a>
									</td>
									<td>
										<a class="delete" href="<?php echo base_url().'index.php/admin/movie_reviews/delete_review/'.$review->review_id.'/'.$review->status;?>">
										<?php if($review->status == 1){?>
										 Delete
										 <?php }else{ ?>
										 Active
										  <?php } ?></a>
									</td>
								</tr>
								<?php endforeach;?>
								
							</table>
							<?php echo $pagination;?>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>
			<?php }?>